// 用户信息接口
export interface User {
  id: number
  username: string
  name: string
  email: string
  phone?: string
  avatar?: string
  status: string
  created_at: string
  updated_at: string
}

// 登录表单接口
export interface LoginForm {
  username: string
  password: string
  captcha_code?: string
  session_id?: string
}

// 登录响应接口
export interface LoginResponse {
  access_token: string
  token_type: string
  expires_in: number
  user: User
  permissions: string[]
}

// API响应基础接口
export interface ApiResponse<T = any> {
  success: boolean
  message: string
  data: T
  code?: number
}

// 权限信息接口
export interface Permission {
  id: number
  name: string
  code: string
  description?: string
  module: string
}

// 角色信息接口
export interface Role {
  id: number
  name: string
  code: string
  description?: string
  permissions: Permission[]
}